<?php
   
   
   index();
   function index(){
   		FunInstance::explodeFun();
   }
   
   class FunInstance{
   	
	
	/**
	 * 连接函数implode
	 */
	public static function implodeFun(){
		$array=array("1","2","3");
		$string = implode("-",$array);
		print_r($string);
	}
	
	/**
	 * 分割函数explode
	 */
	public static function explodeFun(){
		$string='1,2,3';
		$array= explode(",",$string);
		print_r($array);
	}
   }
?>